<template>
  <div class="account-wrap aside-item clearfix" style="padding: 1.5rem 2rem">
    <a-avatar class="avater" :size="64" :src="avaterImg"> </a-avatar>
    <div class="info">
      <div class="name">{{ author }}</div>
      <p class="desc">欢迎来到我的博客</p>
    </div>
  </div>
</template>

<script>
import { author } from "@/config/settings"
import avaterImg from "@/assets/images/avater.jpg"
export default {
  setup() {
    return { avaterImg, author }
  },
}
</script>

<style scoped lang="less">
.account-wrap {
  font-size: 1.4rem;
  .avater {
    float: left;
    margin-right: 20px;
  }
  .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    .name {
      font-size: 2.4rem;
      font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
    }
    .desc {
      margin: 0;
    }
  }
}
</style>
